package indi.zhifa.study2025.test.rabbitmq.route.consumer.config;


import indi.zhifa.study2025.test.rabbitmq.common.Constant;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RabbitConfig {

    @Bean(name = "que1")
    public Queue queue1() {
        return new Queue(Constant.ROUTE_QUE_NAME1,true);
    }

    @Bean(name = "que2")
    public Queue queue2() {
        return new Queue(Constant.ROUTE_QUE_NAME2,true);
    }

}
